<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<%@ include file="/WEB-INF/views/include/easyui.jsp"%>
</head>
<body>
	<div>
		<form id="mainform" action="${ctx}/knowledge/${action}" method="post">
			<table class="formTable"
				style="border-collapse: separate; border-spacing: 10px;">
				<tr>
					<td>新闻标题：</td>
					<td colspan='3'><input type="hidden" name="id"
						value="${kgi.id }" /> <input id="title" name="title" type="text"
						value="${kgi.title }" class="easyui-validatebox"
						data-options="width: 310,required:'required'" /></td>
				</tr>
<!-- 				<tr> -->
<!-- 					<td>新闻链接：</td> -->
<!-- 					<td colspan='3'><input id="url" name="url" type="text" -->
<!-- 						class="easyui-validatebox" -->
<%-- 						data-options="width: 310" value="${kgi.url }" /></td> --%>
<!-- 				</tr> -->
<!-- 				<tr> -->
<!-- 					<td>图片地址：</td> -->
<!-- 					<td colspan='3'><input id="imgurl" name="imgurl" type="text" -->
<%-- 						value="${kgi.imgurl }" class="easyui-validatebox" --%>
<!-- 						data-options="width: 310" /></td> -->
<!-- 				</tr> -->
				<tr>
					<td>新闻类型：</td>
					<td><select id="conttype" class="easyui-combobox"
						name="conttype" data-options="required:'required'" readonly>
							<option value=''></option>
							<option value='1' ${kgi.conttype=='1'?'selected':''}>产品咨询</option>
							<option value='2' ${kgi.conttype=='2'?'selected':''}>金融知识</option>
							<option value='3' ${kgi.conttype=='3'?'selected':''}>行业研究</option>
					</select></td>
					<td>新闻热度：</td>
					<td><select id="hotlevel" class="easyui-combobox"
						name="hotlevel" data-options="required:'required'" readonly>
							<option value=''></option>
							<option value='0' ${kgi.hotlevel=='0'?'selected':''}>普通</option>
							<option value='1' ${kgi.hotlevel=='1'?'selected':''}>推荐</option>
							<option value='2' ${kgi.hotlevel=='2'?'selected':''}>热门</option>
							<option value='3' ${kgi.hotlevel=='3'?'selected':''}>轮播</option>
					</select></td>
				</tr>
				<tr>
					<td>新闻来源：</td>
					<td colspan='3'><input id="source" name="source" type="text"
						value="${kgi.source }" class="easyui-validatebox"
						data-options="width: 310,required:'required'" /></td>
				</tr>
			</table>
		</form>
	</div>
	<script type="text/javascript">
		//上级权限
		$('#conttype').combobox({
			width : 110,
			panelHeight:100
		});
		$('#hotlevel').combobox({
			width : 110,
			panelHeight:100
		});
		
		$('#mainform').form({
			onSubmit : function() {
				var isValid = $(this).form('validate');
				return isValid; // 返回false终止表单提交
			},
			success : function(data) {
				successTip(data, dg, d);
			}
		});
	</script>
</body>
</html>